package com.example.shirodemo.services.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.shirodemo.entities.Permission;
import com.example.shirodemo.mapper.PermissionMapper;
import com.example.shirodemo.services.IPermissionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {
    @Override
    public List<Permission> findUserPermissionsByUserId(long userId) {
        return this.baseMapper.findUserPermissionsByUserId(userId);
    }
}
